package day07.test;

public class Bus extends Vehicle {

    private int passengers;

    public Bus(int passengers) {
        this.passengers = passengers;
    }

    public Bus(String plateNo, int wheelbase, int passengers) {
        super(plateNo, wheelbase);
        this.passengers = passengers;
    }

    public int getPassengers() {
        return passengers;
    }

    public void setPassengers(int passengers) {
        this.passengers = passengers;
    }

    @Override
    public void show() {
        super.show();
        System.out.println("限载人数为" + passengers);
    }
}
